package com.cvpoc.model;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

public class Experience implements Serializable {

	private static final long serialVersionUID = 7082474612912611414L;

	private int id;
	private int id_collaborateur;

	private Date dateDebut;
	private Date dateFin;
	private String employeur;
	private String client;
	private String projet;
	private String nopCode;
	private String description;
	private String environnement;
	private String mission;
	private String role;
	private String resume;
	private String domaine;
	private Set<ExperienceCompetence> experienceCompetences;

	public Experience(Date dateDebut, Date dateFin, String employeur,
			String client, String projet, String nopCode, String description,
			String environnement, String mission, String role, String resume,
			String domaine) {
		this.dateDebut = dateDebut;
		this.dateFin = dateFin;
		this.employeur = employeur;
		this.client = client;
		this.projet = projet;
		this.nopCode = nopCode;
		this.description = description;
		this.environnement = environnement;
		this.mission = mission;
		this.role = role;
		this.resume = resume;
		this.domaine = domaine;
	}

	public Experience() {
		super();
	}

	public Set<ExperienceCompetence> getExperienceCompetences() {
		return experienceCompetences;
	}

	public void setExperienceCompetences(
			Set<ExperienceCompetence> experienceCompetences) {
		this.experienceCompetences = experienceCompetences;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getId_collaborateur() {
		return id_collaborateur;
	}

	public void setId_collaborateur(int id_collaborateur) {
		this.id_collaborateur = id_collaborateur;
	}

	public Date getDateDebut() {
		return dateDebut;
	}

	public void setDateDebut(Date dateDebut) {
		this.dateDebut = dateDebut;
	}

	public Date getDateFin() {
		return dateFin;
	}

	public void setDateFin(Date dateFin) {
		this.dateFin = dateFin;
	}

	public String getEmployeur() {
		return employeur;
	}

	public void setEmployeur(String employeur) {
		this.employeur = employeur;
	}

	public String getClient() {
		return client;
	}

	public void setClient(String client) {
		this.client = client;
	}

	public String getProjet() {
		return projet;
	}

	public void setProjet(String projet) {
		this.projet = projet;
	}

	public String getNopCode() {
		return nopCode;
	}

	public void setNopCode(String nopCode) {
		this.nopCode = nopCode;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getEnvironnement() {
		return environnement;
	}

	public void setEnvironnement(String environnement) {
		this.environnement = environnement;
	}

	public String getMission() {
		return mission;
	}

	public void setMission(String mission) {
		this.mission = mission;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public String getResume() {
		return resume;
	}

	public void setResume(String resume) {
		this.resume = resume;
	}

	public String getDomaine() {
		return domaine;
	}

	public void setDomaine(String domaine) {
		this.domaine = domaine;
	}

	@Override
	public String toString() {
		return "Experience [id=" + id + ", id_collaborateur="
				+ id_collaborateur + ", dateDebut=" + dateDebut + ", dateFin="
				+ dateFin + ", employeur=" + employeur + ", client=" + client
				+ ", projet=" + projet + ", nopCode=" + nopCode
				+ ", description=" + description + ", environnement="
				+ environnement + ", mission=" + mission + ", role=" + role
				+ ", resume=" + resume + ", domaine=" + domaine + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Experience other = (Experience) obj;
		if (id != other.id)
			return false;
		return true;
	}

}
